package cn.kwq.project_manger.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "项目查询请求对象")
public class FindProjectDto {
    /**
     * 学院类型 文0理1
     */
    @ApiModelProperty(value = "学院类型 文0理1 不限就传2")
    private Integer instituteType;

    @ApiModelProperty("开始时间")
    @Temporal(TemporalType.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date projectStartTime;

    @ApiModelProperty("项目类型")
    private String content;

    @ApiModelProperty("项目名字")
    private String projectName;

    @ApiModelProperty(value = "标签（str集合）")
    private List<String> tags;

    @ApiModelProperty(value = "页大小")
    private int pageSize;

    @ApiModelProperty(value = "页码")
    private int pageNum;
}
